const request = uni.$u.http

// 根据文章id获取文章评论列表
export const getArticleCommentList = (id, params) => request.get(`/api/m/comment/${id}`, params)

// // 获取评论列表
// export const getCommentList = params => request.get('/api/m/comment', { params })

// 添加评论
export const addComment = data => request.post('/api/m/comment', data)

// 对评论点赞
export const addCommentLikings = data => request.post('/api/m/comment/liking', data)

// 取消对评论点赞
export const deleteCommentLikings = id => request.delete(`/api/m/comment/liking/${id}`)

// // 获取当前用户点赞过的全部信息
// export const getCommentLikingsList = () => request.get('/api/m/comment/liking')

// 获取用户评论列表 根据用户id
export const getUserComment = (id, params) => request.get(`/api/m/comment/userList/${id}`, { params })
